Versions:
Gemini API CLI from Google is a stateless command-line client for calling Gemini models and managed agents from any shell. It is designed to be used by people as well as by an AI agent that is already in use: once an API key is configured and the gemini-api command is on the path, an agent can choose a model, generate an asset, analyse a file or launch a managed agent to handle a task. A single binary covers models, media and managed agents, giving access to text and reasoning models, multimodal file analysis, and the generation of images, audio, music and video. Long-running work can be delegated by starting a managed agent in the background, keeping the returned interaction ID and retrieving the result when it is needed. The interface is self-describing: commands, flags, request schemas and machine-readable usage information are built into the binary, so an agent can inspect what it needs at run time. A dry-run option validates inputs and prints the resolved HTTP request with credentials redacted. Output is suited to scripts and agents, with streamed text, media written directly to disk, structured JSON or compact TOON, and inline field filtering with a jq option. The tool belongs to the category of AI developer tools and command-line clients. Typical use cases are scripting calls to Gemini, generating media in automated pipelines and extending coding agents with Gemini capabilities. The current version is 0.4.6.
Tags: